#include "Connection.h"
#include "Poco/Util/Application.h"

using namespace cm_base;
using namespace Poco;
using namespace Poco::Net;
using namespace Poco::Util;

int main()
{
    Application* p_app = new Application;
    p_app->loadConfiguration("c:/test/test_case.xml");

    SocketReactor reactor;
    reactor.setTimeout(Poco::Timespan(1,0,0,0,0));

    ByteBufferPool bpool;
    bpool.init(10, 200);

    SocketAddress sa("192.168.1.99", 800);

    Connection con(&bpool,&reactor);
    con.setServer(sa);

    con.connect();


    reactor.run();
    return 0;
}